package com.config;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RuleConfig {

    @Bean
    public IRule myRule(){
        //用自定义的策略来进行负载均衡
        return new MyRule();
    }
}
